package decome01;

public class Cylinder {
   double length;

    public Cylinder() {
        length = 1;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }
    public double findVolume() {
        double pai1=3.14;
        int r =2;
        double s1=pai1 * r * r * length;
        System.out.println(s1);
        return pai1;

    }
}
